﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewsInfo
{
    public partial class NewsCatgory
    {
        /// <summary>
        /// 用户类型的枚举
        /// </summary>
        public enum NewsCatgoryType
        {
            /// <summary>
            /// 时事新闻
            /// </summary>
            Newsletter = 0,
            /// <summary>
            /// 财经新闻
            /// </summary>
            Financial = 1,
            /// <summary>
            /// 娱乐新闻
            /// </summary>
            Fun = 2,
            /// <summary>
            /// 体育新闻
            /// </summary>
            Sports = 3
        }
        public NewsCatgoryType NewsCategory
        {
            get;
            set;
        }
        /// <summary>
        /// 用户类型的枚举中文
        /// </summary>
        public string NewsCatgoryTypeChinese
        {
            get
            {
                switch (NewsCategory)
                {
                    case NewsCatgoryType.Newsletter:
                        return "时事新闻";
                        break;
                    case NewsCatgoryType.Financial:
                        return "财经新闻";
                        break;
                    case NewsCatgoryType.Fun:
                        return "娱乐新闻";
                        break;
                    case NewsCatgoryType.Sports:
                        return "体育新闻";
                        break;
                    default:
                        return "";
                        break;
                }
            }
        }
    }
}
